package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import lombok.Data;

/**
 * @author lwj
 * @date 2025/5/19
 */
    
@Data
@TableName(value = "t_user")
public class User {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * openid
     */
    @TableField(value = "open_id")
    private String openId;

    /**
     * unionId
     */
    @TableField(value = "union_id")
    private String unionId;

    /**
     * wx状态0正常，1停用
     */
    @TableField(value = "wx_status")
    private Integer wxStatus;

    /**
     * 昵称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 真实姓名
     */
    @TableField(value = "real_name")
    private String realName;

    /**
     * 手机号区号
     */
    @TableField(value = "country_code")
    private String countryCode;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 会员级别
     */
    @TableField(value = "vip_level_id")
    private Long vipLevelId;

    /**
     * 身份证号
     */
    @TableField(value = "id_card")
    private String idCard;

    /**
     * 性别，0男，1女
     */
    @TableField(value = "sex")
    private Integer sex;

    /**
     * 员工备注
     */
    @TableField(value = "emp_remark")
    private String empRemark;

    /**
     * [var1],喜欢猫咪code集合
     */
    @TableField(value = "like_cat_code")
    private String likeCatCode;

    /**
     * 是否核销禁用
     */
    @TableField(value = "is_write_disable")
    private String isWriteDisable;

    /**
     * 是否可以核销卡券，0否1是
     */
    @TableField(value = "is_write_off_card_coupon")
    private Integer isWriteOffCardCoupon;

    /**
     * 可以核销的医院id集
     */
    @TableField(value = "write_off_hospital_id")
    private String writeOffHospitalId;

    /**
     * 可以核销的门店编号集
     */
    @TableField(value = "write_off_shop_code")
    private String writeOffShopCode;

    /**
     * 核销备注
     */
    @TableField(value = "write_off_remark")
    private String writeOffRemark;

    /**
     * 渠道对接人员工id
     */
    @TableField(value = "channel_emp_ids")
    private String channelEmpIds;

    /**
     * 渠道来源，
     */
    @TableField(value = "channel_source_type")
    private String channelSourceType;

    /**
     * 是否官方认证
     */
    @TableField(value = "is_official")
    private Integer isOfficial;

    /**
     * 用户标识
     */
    @TableField(value = "user_flag")
    private String userFlag;

    @TableField(value = "version")
    @Version
    private Integer version;

    /**
     * 用户标签集
     */
    @TableField(value = "user_tags")
    private String userTags;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;
}